import fetch from 'common/src/utils/fetch'

/**
 * sql日志详情
 */
export function getSqlLogDetail(id) {
    return fetch({
        url: '/api/logservice/commonSQLMsg/findRecordById?id=' + id,
        method: 'GET'
    });
}

/**
 * sql日志列表
 */
export function getSqlLogList(data) {
    return fetch({
        url: '/api/logservice/commonSQLMsg/list',
        method: 'POST',
        data
    });
}

/**
 * sql日志 时间范围 起止时间
 */
export function getSqlLogTime() {
    return fetch({
        url: '/api/logservice/commonSQLMsg/earliest',
        method: 'GET'
    });
}
    